import {request} from "../../utils/request"
import {request2} from "../../utils/request2"
//用户管理显示 admin/showAdmin
export let admininfo= (params:object)=>{
	return request.postRequest("admin/showAdmin",params)
}
//搜索管理员信息 admin/searchAdmin
export let searchadmininfo= (params:object)=>{
	return request.postRequest("admin/searchAdmin",params)
}
//添加管理员 admin/addAdmin
export let addadmininfo= (params:object)=>{
	return request2.postRequest("admin/addAdmin",params)
}
//添加管理员信息http:admin/addAdminInformation
export let initaddadmininfo= (params:object)=>{
	return request.postRequest("admin/addAdminInformation",params)
}
//管理员信息 admin/find
export let adminfindinfo= (params:object)=>{
	return request.postRequest("admin/find",params)
}
//修改管理员信息 admin/changeAdmin
export let adminchangeinfo= (params:object)=>{
	return request2.postRequest("admin/changeAdmin",params)
}
//删除管理员信息 admin/dele
export let infodel= (params:object)=>{
	return request.postRequest("admin/dele",params)
}
//用户管理门店显示 admin/showStore
export let storeinfo= (params:object)=>{
	return request.postRequest("admin/showStore",params)
}
//搜索门店信息	admin/searchStore
export let searchstoreinfo= (params:object)=>{
	return request.postRequest("admin/searchStore",params)
}
//添加门店管理信息 admin/addStoreInformation
export let addstoreinfos= (params:object)=>{
	return request.postRequest("admin/addStoreInformation",params)
}
//添加门店管理信息 admin/addStore
// export let addstoreinfos= (params:object)=>{
// 	return request2.postRequest("admin/addStore",params)
// }
//修改店长信息 admin/changeStore
export let changestoreinfos= (params:object)=>{
	return request2.postRequest("admin/changeStore",params)
}
//查看所有用户 user/show
export let userinfoshow= (params:object)=>{
	return request.postRequest("user/show",params)
}
//搜索用户信息 user/search
export let searchuser= (params:object)=>{
	return request.postRequest("user/search",params)
}